package com.cuitrip.business.order.detail.orderstatus.finder;

import com.cuitrip.business.order.detail.ui.IFinderOrderDetailView;
import com.cuitrip.business.order.detail.orderstatus.BaseOrderFormPresent;
import com.cuitrip.business.order.model.OrderItem;
import com.cuitrip.presenter.CommentPartRenderData;
import com.cuitrip.service.R;
import com.cuitrip.util.PlatformUtil;

/**
 * Created by baziii on 15/8/11.
 */
public class FinderOverPresent extends BaseOrderFormPresent<IFinderOrderDetailView> {

    public FinderOverPresent(IFinderOrderDetailView orderDetailView, OrderItem orderItem) {
        super(orderDetailView, orderItem);
    }

    @Override
    public void render() {
        mOrderDetailView.renderUi(build(mOrderItem));
    }

    @Override
    public void clickBottomAction() {
    }

    @Override
    public void clickBottomText() {

    }

    @Override
    public CommentPartRenderData buildCommentData(OrderItem orderItem) {
        CommentPartRenderData renderData =new CommentPartRenderData(
                 PlatformUtil.getInstance().getString(R.string.review_attribute_people_someone,orderItem.getUserNick()),
                "",
                orderItem.getCommentScore() ,
                CommentPartRenderData.DEFAULT_MAX_SCORE,
                orderItem.getComment()
        );
        return renderData;
    }

    @Override
    public String getBottomActionText(OrderItem orderItem) {
        return "";
    }

    @Override
    public String getBottomText(OrderItem orderItem) {
        return "";
    }

    @Override
    public BottomButtonStyle getBottomButtonStyle(OrderItem orderItem) {
        return BottomButtonStyle.NONE;
    }

}
